package com.qfedu.service;

import com.qfedu.pojo.req.UserReq;
import com.qfedu.pojo.resp.BaseResp;

import javax.servlet.http.HttpSession;

public interface UserService {
    BaseResp sendMail(String email, HttpSession session);

    BaseResp regist(UserReq userReq, HttpSession session);

    BaseResp login(UserReq userReq);

    BaseResp isAuthenticated();

    /**
     * Integer page, Integer size
     * @return
     */
    BaseResp findAllUser(Integer page, Integer size);

    BaseResp updUser(UserReq userReq);

    BaseResp delUser(UserReq userReq);
}
